package com.woniuxy.daos;

import com.woniuxy.entitys.TbMalfunction;
import com.woniuxy.entitys.TbOrder;
import com.woniuxy.entitys.TbOrderExample;

import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbOrderDao {
    long countByExample(TbOrderExample example);

    int deleteByExample(TbOrderExample example);

    int deleteByPrimaryKey(Integer oid);

    int insert(TbOrder record);

    int insertSelective(TbOrder record);

    List<TbOrder> selectByExample(TbOrderExample example);

    TbOrder selectByPrimaryKey(Integer oid);

    int updateByExampleSelective(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByExample(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByPrimaryKeySelective(TbOrder record);

    int updateByPrimaryKey(TbOrder record);

    List<TbOrder> selectOrderList();

    List<TbOrder> getOrderByHospital(Integer key1);

    List<TbOrder> getOrderByDepartment(Integer key2);

    int updateSoftdel(Integer oid);

    List<TbOrder> selectOrderListByCid(@Param("cid") Integer cid);
    int getAllactualpay();

    List<TbOrder> getOrderBySectionSome(@Param("did")Integer did,@Param("onum")String onum,@Param("bnum")String bnum,@Param("cname")String cname,@Param("orderstatus")Integer orderstatus);

    List<TbOrder> getOrderByBidArrays(@Param("list") ArrayList<Integer> list);

    List<TbOrder> getDepartmentOrderByNum(@Param("onumOrBnum") String onumOrBnum,@Param("hid") Integer hid);

    List<TbOrder> getDepartmentOrderBygetByStatus(@Param("onumOrBnum")Integer orderStatu,@Param("hid")Integer hid);

    List<TbOrder> getByDepartOrder(Integer did);

    int updateStatu(Integer oid);

    List<TbOrder> getAllOrderByCascade(@Param("hid") Integer hid, @Param("did") Integer did);

    List<TbOrder> selOrderByCid(Integer cid);
}